<?php

class tsw_windChill implements ThermdSingleWidget
{
  public function drawWidget($io,$x,$y)
  {	
		$wcr = ThermdStats::ts_readCurrent(ThermdStats::$windchill_log_id);
		if($wcr!==FALSE)
		{
		  $ice = imagecolorallocate($io,0,120,255);
		  // 111 117
			imagestring($io,3,$x,$y,'Wind chill',$ice);
			imagestring($io,2,$x+12,$y+12,$wcr.ThermdStats::$units,$ice);
		}
  }
}

?>